import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询风险防控评分全部
export const riskControlScoreList = data => {
    return $get('/risk/riskControlScore/list', data)
}

// 查询风险防控评分列表
export const riskControlScorePage = data => {
    return $get('/risk/riskControlScore/page', data)
}

// 新增风险防控评分
export const riskControlScoreAdd = data => {
    return $post('/risk/riskControlScore/add', data)
}

// 查询风险防控评分详情
export const riskControlScoreDetail = id => {
    return $get('/risk/riskControlScore/detail/'+ id)
}

// 更新风险防控评分
export const riskControlScoreUpdate = data => {
    return $post('/risk/riskControlScore/update', data)
}

// 删除风险防控评分
export const riskControlScoreDelete = id => {
    return $post('/risk/riskControlScore/delete/'+ id)
}

// 导出风险防控评分
export const riskControlScoreExport = (data,fileName) => {
    return $download('/risk/riskControlScore/export',data, fileName)
}
